const Case = require('../models/case_model')
const jsonResult = require('../utils/JSON')

// 病例-获取病例列表
exports.caseListGet = async (ctx,next) => {
    try {
        let { body } = ctx.request.body;
        console.log(body);
        let res = await Case.caseListGet(body);
        console.log(res,"caseListGet");
        ctx.body = jsonResult.resultSuccessJson(undefined, undefined,res)
    } catch (error) {
        console.log(error)
        ctx.body = jsonResult.resultErrorJson(undefined, undefined);
    }
}